package com.luyu.req;

import com.luyu.customvalid.CustomEmailCCAnno;
import com.luyu.customvalid.EmailNotNull;
import lombok.Getter;
import lombok.Setter;

/**
 * @Author lyh
 */
@Setter
@Getter
public class UserWithEmail extends User{

    @EmailNotNull(regexp = "xxx",message = "我就觉得是错误的")
    private String strictEmail;

    @CustomEmailCCAnno(regexp = "xxx",message = "宽松:{regexp}不符合规范")
    private String noEmail;
}
